<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<jquery/>
<link type="text/css" rel="stylesheet" href="__ROOT__/admin/tpl/public/style/{$hd.session.style}.css"/>
<css file="__ROOT__/admin/tpl/public/css/common.css"/>
<css file="__ROOT__/admin/tpl/public/css/member.css"/>
<js file="__ROOT__/admin/tpl/public/js/member.js"/>
</head>
<body>
<div class="comShow">
		<h1><a href="javascript:void(0)">权限关系设定</a></h1>
		<form action="__CONTROL__/add_access" method="post">
			<div class='formStyle1'>
				<dl>
					<dt><strong>用户组名称：</strong></dt>
					<dd>
						<select id="rbacNodeSelect" query="__CONTROL__/node_info" name="rid">
							<list from="$role" name="$r">
								<option value="{$r.rid}">{$r.title}</option>
							</list>
						</select>
					</dd>
				</dl>
                <dl>
                	<dt><strong>权限分配：</strong></dt>
					<dd class='checkBoxShow' style='height:auto;'>
					
					
					
					
					
				
					
					<!--
					
                    	<list from="$node" name="$v">
                        	<ul>
                            	<h4><input name="nid[]" type="checkbox" value="{$v.nid}">{$v.title}</h4>
                            	<list from="$v['data']" name="$n">
                                	<li>
                                   	 	<h6><input name="nid[]" type="checkbox" value="{$n.nid}">{$n.title}</h6>
                                    	<list from="$n['data']" name="$m">
                                        	<span><input name="nid[]" type="checkbox" value="{$m.nid}">{$m.title}</span>
                                    	</list>
                                	</li>
                            	</list> 
                        	</ul>
                    	</list>
						
					
					-->
					
					
					
					
						<?php      foreach($node as $v){ ?>								    
							<ul id="rbacNodeShow">
                            	<h4><input name="nid[]" type="checkbox" value="<?php echo $v['nid']; ?>"><?php  echo $v['title']  ?></h4>		
									<?php	foreach($v['data'] as $n)  {?>
									<li>
                                   	 	<h6><input name="nid[]" type="checkbox" value="<?php echo $n['nid']; ?>"><?php  echo $n['title']  ?></h6>
											<?php	foreach($n['data'] as $m)  { ?>
													<span><input name="nid[]" type="checkbox" value="<?php echo $m['nid']; ?>"><?php echo $m['title']; ?></span>
											<?php } ?>
										</li>
									<?php } ?>														
							</ul>
						<?php  }  ?>
						
				
						
					
						
						
						
						
						
						
						
						
					</dd>
                </dl>		
				

				
				
				
				
				
				
				
			</div>	
			<input type="submit" class="submit" value="提交">		
		</form>
	</div>
</body>
</html>